package com.atguigu.srb.sms;

import feign.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;


@EnableDiscoveryClient
@EnableFeignClients//(basePackages = {})
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"com.atguigu.srb","com.atguigu.common"})
public class SmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(SmsApplication.class , args);
    }
    //feign的日志级别：输出所有日志，feign的日志默认是debug级别的
    @Bean
    public Logger.Level level(){
        return Logger.Level.FULL;
    }
}
